<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">

<head>
    <meta charset="UTF-8">
    <title>班级页面管理显示</title>
</head>
<body>
<hr>
<h1>班级管理</h1>
<hr>
<button><a th:href = "@{/adm/clz/show}">显示所有的班级</a></button>
<button><a th:href = "@{/adm/clz/go2Add}">添加一个新的班级</a></button>
<hr>
<h1>班级添加</h1>

<form th:action="'/adm/clz/do' + ${action}" method="post">
    班级编号：
    <input th:if="${action eq 'Update'}" th:value="${clz.clzno}" type="text" name="clzno" readonly="readonly">
    <input th:if="${action ne 'Update'}" type="text" name="clzno">
    <br>
    班级名称：<input type="text" th:value="${clz.clzname}" name="clzname">
    <br>
    <input th:if="${action eq 'Update'}" type="submit" value="修改班级">
    <input th:if="${action ne 'Update'}" type="submit" value="添加班级">
</form>


</body>
</html>